<?php include "connection.php";?>
<?php include "checkSession.php";?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php

$product_id=$_REQUEST['delected'];


$tableProduct = "product";

$sql = "delete from $tableProduct where product_id='$product_id'";
$query=mysql_query($sql) or die ('删除数据失败');



?>
<script type="text/javascript">
    alert("菜式已删除，请点击返回列表！");
    document.location = "../admin_productset.php";
</script>
</body>
</html>